import request from '@/utils/request'

// data 请求体数据
export function addSection(data){
  return request({
    url: '/section/add',
    method: 'post',
    data: data
  })

}

export function getSectionList(data){
  return request({
    url: '/section/list',
    method: 'post',
    data: data
  })

}

export function updateSection(data){
  return request({
    url: '/section/update',
    method: 'post',
    data: data
  })

}

export function deleteSection(data){
  return request({
    url: '/section/delete',
    method: 'post',
    data: data
  })

}

export function getBannerIdList(bannerSectionName){
   return request({
       url: '/homeBanner/idList',
       method: 'post',
       data: {
          "sectionName":bannerSectionName
       }
   })
}
